package com.dragon.modules.yuegou.entity.merchant;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 商户关联微信用户实体类<br>
 * 对应的表为：mer_wechat<br>
 * 
 * @author pbuilder generated
 * @date 2022-03-26 09:44:39
 * @company sgy
 * @version 2.0
 */
@TableName("mer_wechat")
@ApiModel(description = "商户关联微信用户")
public class WechatEntity {

	protected String id;

    /** 商户ID */
	@ApiModelProperty("商户ID")
	protected String merchantId;

    /** openid */
	@ApiModelProperty("openid")
	protected String openid;

    /** 昵称 */
	@ApiModelProperty("昵称")
	protected String nickname;

    /** 省份 */
	@ApiModelProperty("省份")
	protected String province;

    /** 城市 */
	@ApiModelProperty("城市")
	protected String city;

    /** 国家 */
	@ApiModelProperty("国家")
	protected String country;

    /** 头像 */
	@ApiModelProperty("头像")
	protected String headimgurl;

    /** 特权信息 */
	@ApiModelProperty("特权信息")
	protected String privilege;

    /** 统一标识 */
	@ApiModelProperty("统一标识")
	protected String unionid;

	/**
	 * 构造一个空商户关联微信用户实体对象
	 */
	public WechatEntity(){
		super();
	}

	/**
	 * 依据其它对象的信息构造一个商户关联微信用户实体对象
	 * 
	 * @param other 其它对象
	 */
	public WechatEntity(WechatEntity other){
		super();
     	this.id = other.id;
     	this.merchantId = other.merchantId;
     	this.openid = other.openid;
     	this.nickname = other.nickname;
     	this.province = other.province;
     	this.city = other.city;
     	this.country = other.country;
     	this.headimgurl = other.headimgurl;
     	this.privilege = other.privilege;
     	this.unionid = other.unionid;
	}


	/**
	 * 获取
	 * 
	 * @return id 
	 */
	public String getId() {
		return id;
	}
  	
	/**
	 * 设置
	 * 
	 * @param id 
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * 获取商户ID
	 * 
	 * @return merchantId 商户ID
	 */
	public String getMerchantId() {
		return merchantId;
	}
  	
	/**
	 * 设置商户ID
	 * 
	 * @param merchantId 商户ID
	 */
	public void setMerchantId(String merchantId) {
		this.merchantId = merchantId;
	}

	/**
	 * 获取openid
	 * 
	 * @return openid openid
	 */
	public String getOpenid() {
		return openid;
	}
  	
	/**
	 * 设置openid
	 * 
	 * @param openid openid
	 */
	public void setOpenid(String openid) {
		this.openid = openid;
	}

	/**
	 * 获取昵称
	 * 
	 * @return nickname 昵称
	 */
	public String getNickname() {
		return nickname;
	}
  	
	/**
	 * 设置昵称
	 * 
	 * @param nickname 昵称
	 */
	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	/**
	 * 获取省份
	 * 
	 * @return province 省份
	 */
	public String getProvince() {
		return province;
	}
  	
	/**
	 * 设置省份
	 * 
	 * @param province 省份
	 */
	public void setProvince(String province) {
		this.province = province;
	}

	/**
	 * 获取城市
	 * 
	 * @return city 城市
	 */
	public String getCity() {
		return city;
	}
  	
	/**
	 * 设置城市
	 * 
	 * @param city 城市
	 */
	public void setCity(String city) {
		this.city = city;
	}

	/**
	 * 获取国家
	 * 
	 * @return country 国家
	 */
	public String getCountry() {
		return country;
	}
  	
	/**
	 * 设置国家
	 * 
	 * @param country 国家
	 */
	public void setCountry(String country) {
		this.country = country;
	}

	/**
	 * 获取头像
	 * 
	 * @return headimgurl 头像
	 */
	public String getHeadimgurl() {
		return headimgurl;
	}
  	
	/**
	 * 设置头像
	 * 
	 * @param headimgurl 头像
	 */
	public void setHeadimgurl(String headimgurl) {
		this.headimgurl = headimgurl;
	}

	/**
	 * 获取特权信息
	 * 
	 * @return privilege 特权信息
	 */
	public String getPrivilege() {
		return privilege;
	}
  	
	/**
	 * 设置特权信息
	 * 
	 * @param privilege 特权信息
	 */
	public void setPrivilege(String privilege) {
		this.privilege = privilege;
	}

	/**
	 * 获取统一标识
	 * 
	 * @return unionid 统一标识
	 */
	public String getUnionid() {
		return unionid;
	}
  	
	/**
	 * 设置统一标识
	 * 
	 * @param unionid 统一标识
	 */
	public void setUnionid(String unionid) {
		this.unionid = unionid;
	}

    public String toString() {
		return new StringBuilder().append("WechatEntity{").
			append("id=").append(id).
			append(",merchantId=").append(merchantId).
			append(",openid=").append(openid).
			append(",nickname=").append(nickname).
			append(",province=").append(province).
			append(",city=").append(city).
			append(",country=").append(country).
			append(",headimgurl=").append(headimgurl).
			append(",privilege=").append(privilege).
			append(",unionid=").append(unionid).
			append('}').toString();
    }

	/**
	 * 复制对象
	 * 
	 * @return 复制后的新实体对象
	 */
	public WechatEntity copy() {
		return new WechatEntity(this);
	}


    /**  */
	public static final String COL_ID = "id";

    /** 商户ID */
	public static final String COL_MERCHANT_ID = "merchant_id";

    /** openid */
	public static final String COL_OPENID = "openid";

    /** 昵称 */
	public static final String COL_NICKNAME = "nickname";

    /** 省份 */
	public static final String COL_PROVINCE = "province";

    /** 城市 */
	public static final String COL_CITY = "city";

    /** 国家 */
	public static final String COL_COUNTRY = "country";

    /** 头像 */
	public static final String COL_HEADIMGURL = "headimgurl";

    /** 特权信息 */
	public static final String COL_PRIVILEGE = "privilege";

    /** 统一标识 */
	public static final String COL_UNIONID = "unionid";
}
